package models

type Policy struct {
	DefaultModel
	Name    string `json:"name"`
	Title   string `json:"title"`
	Content string `json:"content"`
	Date    string `json:"date"`
}

func GetPolicies() []Policy {
	var policies []Policy
	var db = GetDB()
	db.Find(&policies)
	return policies
}
